Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

STCOM-1385 Clear filter value after an action is chosen from MultiSelection #2393

Merged
merged 2 commits into from
Nov 21, 2024

Conversation

JohnC-80
Copy link
Contributor

STCOM-1385

Known locations affected: Tags (linked in main JIRA), Agreements->Settings ->Supplementary properties (closed as duplicate)

Approach

Multiselection needs to reset the filter value when an option's onSelect handler is called (actions API for Multiselection) Otherwise, the filter value will not be reset as it usually is through typical value selection logic.

@JohnC-80 JohnC-80 requested review from zburke and a team November 19, 2024 16:51
Copy link

github-actions bot commented Nov 19, 2024

Bigtest Unit Test Results

    1 files  ±0      1 suites  ±0   15s ⏱️ ±0s
1 533 tests +2  1 525 ✅ +2  8 💤 ±0  0 ❌ ±0 
1 535 runs  +2  1 527 ✅ +2  8 💤 ±0  0 ❌ ±0 

Results for commit e197711. ± Comparison against base commit 46ce739.

♻️ This comment has been updated with latest results.

Copy link
Member

@zburke zburke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code changes LGTM. Is it possible to capture this behavior in a new test, e.g. to assert that the filter is empty after one of thes events on lines 263/264/265 fires?

Unrelated, I'm not usually a fan of "while you're in there..." changes, but is it maybe worth fixing the comment on line 276/277? That hardly feels worth it's own PR, but it's definitely wrong.

@JohnC-80 JohnC-80 merged commit a3e41cd into master Nov 21, 2024
15 checks passed
github-actions bot pushed a commit that referenced this pull request Nov 21, 2024
…ection (#2393)

* clear filter value after an action is chosen from MultiSelection's option list.

* add tests for removed filter value, updated comment
@zburke zburke deleted the STCOM-1385 branch December 2, 2024 18:44
zburke pushed a commit that referenced this pull request Dec 2, 2024
…ection (#2393)

* clear filter value after an action is chosen from MultiSelection's option list.

* add tests for removed filter value, updated comment

(cherry picked from commit a3e41cd)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants